<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>太阳升落Loading</title>
    <link rel="stylesheet" href="./index.css">
</head>
<body>
  
    <div class="box">
        <div class="hide">
            <div class="sun">
                <div class="sun-body"></div>
                <div class='eyes'></div>
            </div>
        </div>
        
        <P class="loading"><i>loading...</i></P>
    </div>
    <script>
        const sun = document.querySelector('.sun-body');
        let html = '';
        for(let i =8;i>0;i--){
            html += `<p class="sun-line" style="transform: rotate(${45*i}deg) translateX(35px);"></p>`
        }
        sun.innerHTML = html;
    </script>
</body>
</html>